{include file="Public:header" /}
<body>
<div class="wrap">
    <!--碎屑路径-->
    <div class="debris_nav">
        <ol class="breadcrumb">
            <li><a href="#">系统设置</a></li>
            <li class="active">网站设置</li>
        </ol>
    </div>
    <div class="blank"></div>
    <!--查询框-->
    <div id="serch">
        <form method="post" action="{:url('user/index')}">
        <label><input type="text" name="keyword" value="{$ser.keyword}" class="form-control" placeholder="请输入管理员名称"></label>
        <label>
            <select name="role_id" class="form-control">
                <option value="">请选择管角色组</option>
                {$ser.role_opt}
            </select>
        </label>
        <label><input type="submit" value="查询"  class="form-control"></label>
        </form>
    </div>
    <div class="blank"></div>
    <!--列表内容-->
     <div class="content" id="content_list">
        <div class="add_nav">
            <ul>
                <li><a href="{:url('user/add')}"><i class="iconfont icon-tianjia"></i><span>添加管理员</span></a> </li>
            </ul>
        </div>
         <!-- 表格列表 -->
         <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tab1">
             <thead>
                 <tr>
                     <td width="80"> ID</td>
                     <td>管理员名称</td>
                     <td>角色组</td>
                     <td>邮箱</td>
                     <td>状态</td>
                     <td width="140" align="center">添加时间</td>
                     <td width="140" align="center">更新时间</td>
                     <td width="150" align="center">操作</td>
                 </tr>
             </thead>
             <tbody>
                {volist name="list" id="vo"}
                 <tr>
                     <td><input class="form-control listorder" value="{$vo.id}"></td>
                     <td>{$vo.name}</td>
                     <td><span class="label label-primary">{$vo.role_name}</span></td>
                     <td>{$vo.email}</td>
                     <td>
                         {if condition="$vo.status eq 1"}
                         <span class="label  label-success">启用</span>
                         {else}
                         <span class="label label-default">禁用</span>
                         {/if}
                     </td>
                     <td>{$vo.add_time|date='Y-m-d H:i:s',###}</td>
                     <td >{notempty name="$vo.update_time"}{$vo.update_time|date='Y-m-d H:i:s',###}{/notempty}</td>
                     <td>
                         <div class="operat">
                             <label><a href="{:url('user/edit')}?id={$vo.id}" class="bg_blue_a">编辑</a></label>
                             <label><a href="{:url('user/delete')}?id={$vo.id}" class="bg_green_a">删除</a></label>
                         </div>
                     </td>
                 </tr>
             {/volist}
             </tbody>
         </table>

         <div id="page">{$page}</div>
         <!-- 表格列表 End -->
     </div>
    <!--列表内容-->
</div>
</body>
</html>